package com.dhwl.hsh.driver.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.ScrollView;
import android.widget.TextView;

import com.dhwl.hsh.driver.R;
import com.dhwl.hsh.driver.view.ScrollViewWithListView;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * 订单详情
 *
 * @author Derek.Kidd
 * @time 2016/4/26 18:34
 */
public class OrderDetailActivity extends BaseActivity {

    @Bind(R.id.topbar_left_img)
    ImageView topbarLeftImg;
    @Bind(R.id.topbar_title_tv)
    TextView topbarTitleTv;
    @Bind(R.id.topbar_right_tv)
    TextView topbarRightTv;
    @Bind(R.id.tv_order_num)
    TextView tvOrderNum;
    @Bind(R.id.tv_order_type)
    TextView tvOrderType;
    @Bind(R.id.tv_order_status)
    TextView tvOrderStatus;
    @Bind(R.id.tv_order_time)
    TextView tvOrderTime;
    @Bind(R.id.tv_order_driver_type)
    TextView tvOrderDriverType;
    @Bind(R.id.tv_order_mileage)
    TextView tvOrderMileage;
    @Bind(R.id.icon_start_shipping)
    ImageView iconStartShipping;
    @Bind(R.id.img_order_shipping_call)
    ImageView imgOrderShippingCall;
    @Bind(R.id.icon_end_shipping)
    ImageView iconEndShipping;
    @Bind(R.id.listView_address)
    ScrollViewWithListView listViewAddress;
    @Bind(R.id.btn_need_carry)
    Button btnNeedCarry;
    @Bind(R.id.btn_need_receipt)
    Button btnNeedReceipt;
    @Bind(R.id.btn_need_remittance)
    Button btnNeedRemittance;
    @Bind(R.id.layout_order_toast)
    LinearLayout layoutOrderToast;
    @Bind(R.id.tv_choose_truck)
    TextView tvChooseTruck;
    @Bind(R.id.img_order_detail_call_driver)
    ImageView imgOrderDetailCallDriver;
    @Bind(R.id.layout_driver)
    RelativeLayout layoutDriver;
    @Bind(R.id.layout_driver_grade)
    RelativeLayout layoutDriverGrade;
    @Bind(R.id.tv_start_mileage)
    TextView tvStartMileage;
    @Bind(R.id.tv_ship_start_price)
    TextView tvShipStartPrice;
    @Bind(R.id.tv_more_mileage)
    TextView tvMoreMileage;
    @Bind(R.id.tv_ship_more_price)
    TextView tvShipMorePrice;
    @Bind(R.id.tv_order_total_price)
    TextView tvOrderTotalPrice;
    @Bind(R.id.layout_bill_mileage)
    LinearLayout layoutBillMileage;
    @Bind(R.id.layout_to_task)
    RelativeLayout layoutToTask;
    @Bind(R.id.scrollView_content)
    ScrollView scrollViewContent;
    @Bind(R.id.btn_cancel_order)
    Button btnCancelOrder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_order_detail;
    }

    @Override
    protected void initViews(Bundle savedInstanceState) {
        setTitleContent("订单详情");
    }

    @Override
    protected void initData() {

    }

    @OnClick(R.id.layout_to_task)
    public void onTaskClick(View view){
        Intent intent = new Intent();
        intent.setClass(this,TaskDetailActivity.class);
        startActivity(intent);
    }
}
